import { defHttp } from "/@/utils/http/axios";
import { useMessage } from "/@/hooks/web/useMessage";
const { createConfirm } = useMessage();
var Api;
(function (Api) {
    Api["list"] = "/settle/caishuiTaskSettle/list";
    Api["itemList"] = "/settle/caishuiTaskSettle/itemList";
    Api["handleImportList"] = "/settle/caishuiTaskSettle/handleImportList";
    Api["statusOne"] = "/settle/caishuiTaskSettle/statusOne";
    Api["importExcel"] = "/settle/caishuiTaskSettle/importExcel";
    Api["handleImportExcel"] = "/settle/caishuiTaskSettle/handleImportExcel";
    Api["exportXls"] = "/settle/caishuiTaskSettle/exportXls";
    Api["caishuiTaskSettleItemList"] = "/settle/caishuiTaskSettle/queryCaishuiTaskSettleItemByMainId";
    Api["queryBusinessInfo"] = "/settle/caishuiTaskSettle/queryBusinessInfo";
})(Api || (Api = {}));
/**
 * 导出api
 * @param params
 */
export const getExportUrl = Api.exportXls;
/**
 * 导入api
 */
export const getImportUrl = Api.importExcel;
/**
 * 导入api
 */
export const getHandleImportUrl = Api.handleImportExcel;
/**
 * 列表接口
 * @param params
 */
export const list = (params) => defHttp.get({ url: Api.list, params });
/**
 * 详情列表接口
 * @param params
 */
export const itemList = (params) => defHttp.get({ url: Api.itemList, params });
/**
 * 添加结算单列表
 * @param params
 */
export const handleImportList = (params) => defHttp.post({ url: Api.handleImportList, params }, { isTransformResponse: false });
/**
 * 提交、作废接口
 * @param params
 */
export const statusOne = (params) => {
    return defHttp.get({ url: Api.statusOne, params }, { isTransformResponse: false });
};
/**
 * 子表列表接口
 * @param params
 */
export const taskSettleItemList = (params) => defHttp.get({ url: Api.caishuiTaskSettleItemList, params }, { isTransformResponse: false });
/**
 * 查询当前商户相关信息
 * @param params
 */
export const queryBusinessInfo = () => defHttp.get({ url: Api.queryBusinessInfo });
